#ifndef __TEST_GEAR_JOINT_H__
#define __TEST_GEAR_JOINT_H__

#include "BaseLayer.h"

class TestGearJoint : public BaseLayer {
public:
	TestGearJoint() {}
	~TestGearJoint() {}
	static CCScene* scene();
	virtual bool init();
	CREATE_FUNC(TestGearJoint);

public:
	virtual void initGround();
	void initJoint();

public:
	virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
	virtual void ccTouchMoved(CCTouch *pTouch, CCEvent *pEvent);
	virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);
	
public:
	virtual void update(float delta);

private:
	b2MouseJoint* m_mouseJoint;
	b2Body* cirBody1;
	b2Body* cirBody2;
	b2Body* boxBody1;
};

#endif // __TEST_GEAR_JOINT_H__